package com.tchepannou.limbe.annotation;

import com.tchepannou.limbe.model.Model;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation an object that can be cached
 */
@Retention (RetentionPolicy.RUNTIME)
@Target (value={ElementType.TYPE})
public @interface Cache
{
    String region() default "";
    int ttl () default  -1;
}
